Compression techniques for vertices of graphic models

ABSTRACT

Methods for lossy and lossless pre-processing of image data. In one embodiment, a method for lossy pre-processing image data, where the method may include, at a computing device: receiving the image data, where the image data includes a model having a mesh, the mesh includes vertices defining a surface, the vertices including attribute vectors, and the attribute vectors including values. The method also including quantizing the values of the attribute vectors to produce modified values, where a precision of the modified values is determined based on a largest power determined using a largest exponent of the values, encoding pairs of the modified values into two corresponding units of information. The method also including, for each pair of the pairs of the modified values, serially storing the two corresponding units of information as a data stream into a buffer, and compressing the data stream in the buffer.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of U.S. patent applicationSer. No. 16/692,840, entitled “COMPRESSION TECHNIQUES FOR VERTICES OFGRAPHIC MODELS,” filed Nov. 22, 2019, set to issue Oct. 4, 2022 as U.S.Pat. No. 11,461,275, which claims the benefit of U.S. ProvisionalApplication No. 62/855,812, entitled “COMPRESSION TECHNIQUES FORVERTICES OF GRAPHIC MODELS,” filed May 31, 2019, the contents of whichare incorporated by reference herein in their entirety for all purposes.

FIELD OF INVENTION

The embodiments described herein set forth techniques for compression,and in particular, techniques for compressing vertices of graphicsmodels.

BACKGROUND

Image compression techniques involve exploiting aspects of an image toreduce its overall size while retaining information that can be used tore-establish the image to its original (lossless) or near-original(lossy) form. Different parameters can be provided to compressors toachieve performance characteristics that best-fit particularenvironments. For example, higher compression ratios can be used toincrease the amount of available storage space within computing devices(e.g., smart phones, tablets, wearables, etc.), but this typically comesat a cost of cycle-intensive compression procedures that consumecorrespondingly higher amounts of power and time. On the contrary,cycle-efficient compression techniques can reduce power and timeconsumption, but this typically comes at a cost of correspondingly lowercompression ratios and amounts of available storage space withincomputing devices.

Three-dimensional (3D) computer graphics models used by computingdevices include image data that is growing larger and more detailed, andthus, require more storage space. A 3D computer graphics model, orshape, is defined by its two-dimensional (2D) surface, which in turn isspecified by a mesh, for example, a triangular or quadrilateral mesh.The mesh is composed of vertices that have several attributes forposition, texture, and normals. The vertex attributes may constitute asignificant part of the overall size of these models. Storing the vertexattributes in a compressed and memory efficient way may be desired.

SUMMARY

Representative embodiments set forth herein disclose techniques forcompressing vertices of image data of a graphic model. In particular,the techniques involve pre-processing the images (i.e., prior tocompression) in a manner that can enhance resulting compression ratioswhen the images are compressed using lossless compressors.

One embodiment sets forth a method for lossy pre-processing image datafor lossless compression of the image data. According to someembodiments, the method can be performed by an image analyzerimplemented on a computing device. Initially, the method involvesreceiving the image data, where the image data comprises a model havinga mesh, the mesh comprising a plurality of vertices defining a surface,the plurality of vertices comprising a plurality of attribute vectors,and the plurality of attribute vectors comprising a plurality of values.Next, the method involves quantizing the plurality of values of theplurality of attribute vectors to produce a plurality of modifiedvalues, wherein a precision of the plurality of modified values isdetermined based on a largest power determined using a largest exponentof the plurality of values. Next, the method involves encoding pairs ofthe plurality of modified values into two corresponding units ofinformation. For each pair of the pairs of the plurality of modifiedvalues, the method involves serially storing the two corresponding unitsof information as a data stream into a buffer. The method involvescompressing the data stream in the buffer.

Another embodiments sets for a method for lossless pre-processing imagedata for lossless compression of the image data. According to someembodiments, the method can be performed by an image analyzerimplemented on a computing device. Initially, the method involvesreceiving the image data, where the image data comprises a model havinga mesh, the mesh comprising a plurality of vertices defining a surface,the plurality of vertices comprising a plurality of attribute vectors,and the plurality of attribute vectors comprising a plurality of values.Next, the method involves, for each attribute vector of the plurality ofattribute vectors: (i) de-interleaving one or more respective attributevalues into a respective set of bits; (ii) encoding a first portion ofthe respective set of bits into a first byte stream comprising (1) afirst group of least significant bits, and (2) a sign bit; (iii)encoding a second portion of the respective set of bits into a secondbyte stream comprising a second group of most significant bits; and (iv)for each of the respective set of bits, concatenating the second bytestream after the first byte stream in a single data stream. The methodalso involves compressing the single data stream.

Other embodiments include a non-transitory computer readable storagemedium configured to store instructions that, when executed by aprocessor included in a computing device, cause the computing device tocarry out the various steps of any of the foregoing methods. Furtherembodiments include a computing device that is configured to carry outthe various steps of any of the foregoing methods.

Other aspects and advantages of the present disclosure will becomeapparent from the following detailed description taken in conjunctionwith the accompanying drawings that illustrate, by way of example, theprinciples of the described embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

The disclosure will be readily understood by the following detaileddescription in conjunction with the accompanying drawings, wherein likereference numerals designate like structural elements.

FIGS. 1A-1B illustrates an overview of computing devices that can beconfigured to perform the various techniques described herein, accordingto some embodiments.

FIGS. 2A-2C illustrate a sequence of conceptual diagrams for lossypre-processing image data for lossless compression, according to someembodiments.

FIG. 3 illustrates a method for lossy pre-processing image data forlossless compression, according to some embodiments.

FIGS. 4A-4C illustrate a sequence of conceptual diagrams for losslesspre-processing image data for lossless compression, according to someembodiments.

FIG. 5 illustrates a method for lossless pre-processing image data forlossless compression, according to some embodiments.

FIG. 6 illustrates a detailed view of a computing device that can beused to implement the various techniques described herein, according tosome embodiments.

DETAILED DESCRIPTION

Representative applications of methods and apparatus according to thepresent application are described in this section. These examples arebeing provided solely to add context and aid in the understanding of thedescribed embodiments. It will thus be apparent to one skilled in theart that the described embodiments can be practiced without some or allof these specific details. In other instances, well-known process stepshave not been described in detail in order to avoid unnecessarilyobscuring the described embodiments. Other applications are possible,such that the following examples should not be taken as limiting.

In the following detailed description, references are made to theaccompanying drawings, which form a part of the description and in whichare shown, by way of illustration, specific embodiments in accordancewith the described embodiments. Although these embodiments are describedin sufficient detail to enable one skilled in the art to practice thedescribed embodiments, it is understood that these examples are notlimiting such that other embodiments can be used, and changes can bemade without departing from the spirit and scope of the describedembodiments.

The embodiments described herein set forth techniques for compressingimage data of 3D computer graphics models. The 3D computer graphicsmodel, or shape, is defined by its 2D surface, which in turn isspecified by a mesh, for example, a triangular or quadrilateral mesh. Atopology of the mesh may define the vertices of the mesh and how theyare connected. For example, various connections between the vertices maydefine a face and the faces may be connected to define a shape of themodel. The information pertaining to vertex connections may be stored ina graph. The vertices of the mesh have several attributes and thepresent disclosure pertains to the compression of the vertex positionsand texture coordinates of these attributes. As noted above, it is ofinterest to store the vertex attributes in a compressed and memoryefficient way. At the same time, it is desirable for compressed formatsto be both sufficiently accurate and efficient to decode to not degradethe visual appearance and the initial render speed, respectively. Thetechniques disclosed herein may achieve reducing the amount of memoryused to store the vertex attributes, as well as producing efficientdecoding and rendering speed.

In 3D graphics models, the vertex positions and texture coordinates maybe represented as three-element and two-element vectors offloating-point numbers, denoted as float3 and float2 for 32-bitsingle-precision numbers, respectively. In computer graphics, the vertexpositions and texture coordinates may also be represented and processedas half-precision, 16-bit floating-point numbers, since such numbers aresupported by modern graphics processing units (GPUs). Regardinghalf-precision floating-point numbers, the numerical precision may bedefined by the distance, or interval, between two consecutive numbers.The precision is a fixed-size within a range given by the powerdetermined by raising a base with an exponent. The vertex positionvector and texture coordinate vector may be denoted a half3 and half2,respectively.

In some instances, base 3D graphics models may represent digitalavatars, characters, animals, people, and so forth. In some embodiments,the 3D graphics models may be emojis or animojis. The base 3D graphicsmodels may be stored on a computing device (e.g., smartphone, tablet,laptop). Initial attribute vectors for the base 3D graphics models maybe compressed according to embodiments disclosed herein and stored withthe base 3D graphics models. A user may generate a recording that causesthe base 3D graphics model to move (e.g., according to their facialexpressions). The movements may be captured as relative attributevectors that describe the displacement of the vertices of the meshduring the recording. These relative attribute vectors may describe howthe vertices representing features, such as ears, eyes, mouth, and/ornose, of the 3D graphics model should move. These attribute vectors maybe compressed according to embodiments described herein. The compressedrelative attribute vectors may be stored on the computing device.

In some embodiments, the user may desire to send the recorded movementof the 3D graphic model to another computing device of another user. Thecomputing device may transmit the relative attribute vectors for the 3Dgraphics model, among other data, to the other computing device. Theother computing device may store initial attribute vectors of the 3Dgraphic model. Upon receiving the relative attribute vectors, the othercomputing device may animate the 3D graphic model based on thedifferences between the initial attribute vectors and the relativeattribute vectors.

Some embodiments of the present disclosure provide for a compressor forthe half-precision attribute vectors to enable reducing the memoryfootprint, and to increase decoding and initial rendering. The disclosedembodiments support both lossless compression and a lossy quantizationoption. Both techniques are based on a first pre-processing step, whichmay be lossy or lossless, and a second lossless compression (e.g.,Lempel-Ziv-Welch (LZW)-based and/or entropy-based compressors). Inparticular, the techniques involve pre-processing the images (i.e.,prior to compression) in a manner that can enhance resulting compressionratios when the images are compressed using lossless compressors (e.g.,Lempel-Ziv-Welch (LZW)-based compressors).

According to some embodiments, the techniques described herein can beperformed by an image analyzer implemented on a computing device.Initially, the image analyzer receives image data to be compressed. Theimage data may include a model (e.g., 3D graphic model) having a mesh.The mesh may include a set of vertices defining a surface. The set ofvertices may include a set of attribute vectors, and the set ofattribute vectors may include a set of values. For each vertex, theremay be an attribute vector for position (x, y, z), texture (u, v), andnormals (n_(x), n_(y), n_(t)). There are three elements of the positionvectors and they may be denoted as half3 for including threehalf-precision, 16-bit floating-point numbers. There are two elements ofthe texture vectors, and they may be denoted as half2 for including twohalf-precision, 16-bit floating-point numbers.

In the lossy pre-processing embodiment, after the image data is receivedby an image analyzer, a quantization step may be performed on the set ofvalues included in the set of attribute vectors. The quantization may beadapted to the range of magnitudes (given by the power) of the attributevectors in the model of the image data in such a way as not to causevisual artifacts. Due to the values of the attribute vectors beingrepresented as floating-point numbers, the absolute precision of thevalues is dependent on the (absolute) magnitude of the floating-pointnumbers. Numbers with a small magnitude (e.g., small power) may have anumerical precision that is higher than an amount suitable to reducememory footprint of the vertices without causing visual artifacts. Toobtain the same numerical precision across the range of values appearingin the set of vectors (e.g., for position and texture), the sameprecision may be used for those with the highest magnitude. That is, auniform quantization may be applied where the precision is chosen tomatch that given by the largest power determined by the largest exponentof the set of values represented as floating-point numbers. The resultof the quantization using the largest power as the quantization value onthe set of values is a set of modified values (e.g., 12-bit signedinteger). Pairs of the set of modified values may be encoded into twocorresponding units of information (e.g., a 1 byte least significant bit(LSB) and a 2 byte most significant bit (MSB)) and de-interleaved. Foreach pair, the two corresponding units of information may be seriallystored as a data stream into a buffer. The data stream in the buffer maybe compressed using the lossless compressor to obtain a compressedimage. The compressed image may be stored in memory and/or transmittedto another computing device.

In the lossless pre-processing embodiment, after the image data isreceived by an image analyzer, a de-interleaving step may be performedfor each attribute vector of the set of attribute vectors to separatethe respective attribute vector into respective streams for theirrespective x, y, and z value and u and v values. Each of the valuestreams may be further split into a LSB stream and a MSB stream. TheseLSB streams and MSB streams may be concatenated, one after the other,into a single data stream. The single data stream may be compressedusing a lossless compressor to obtain the compressed image. Thecompressed image may be stored in memory and/or transmitted to anothercomputing device.

Accordingly, the techniques set forth herein involve pre-processingvertices of image data in a manner that can enhance resultingcompression ratios when the images are provided to compressors (e.g.,LZW-based compressors), thereby enabling computing devices to maintainvisually accurate 3D graphic models while reducing the amount ofrequired storage space. A more detailed description of these techniquesis provided below in conjunction with FIGS. 1A, 1B, 2A-2C, 3, 4A-4C, 5,and 6 .

FIG. 1A illustrates an overview 100 of a computing device 102 that canbe configured to perform the various techniques described herein. Asshown in FIG. 1A, the computing device 102 can include a processor 104,a volatile memory 106, and a non-volatile memory 124. It is noted that amore detailed breakdown of example hardware components that can beincluded in the computing device 102 is illustrated in FIG. 6 , and thatthese components are omitted from the illustration of FIG. 1A merely forsimplification purposes. For example, the computing device 102 caninclude additional non-volatile memories (e.g., solid state drives, harddrives, etc.), other processors (e.g., a multi-core central processingunit (CPU)), and so on. According to some embodiments, an operatingsystem (OS) (not illustrated in FIG. 1A) can be loaded into the volatilememory 106, where the OS can execute a variety of applications thatcollectively enable the various techniques described herein to beimplemented. As described in greater detail herein, these applicationscan include an image analyzer 110 (and its internal components), one ormore compressors 120, and so on.

According to some embodiments, the image analyzer 110 can be configuredto implement the techniques described herein that involve lossypre-processing image data 108 prior to compressing the image data 108.In particular, and as shown in FIG. 1A, the image data 108 cancorrespond to a display device 130 that is communicably coupled to thecomputing device 102, where the image data 108 includes a 3D graphicsmodel having a mesh. The mesh includes a set of vertices that define asurface. The set of vertices include a set of attribute vectors (e.g.,position, texture, etc.), and the set of attribute vectors include a setof values. The values may be half-precision, 16-bit floating-pointnumbers. The following description of the image analyzer 110 withrespect to FIG. 1A is provided at a high level for simplificationpurposes.

As shown in FIG. 1A, the image data 108 is received by the imageanalyzer 110. Upon receipt of the image data 108, a quantizer 112 can beconfigured to quantize each the set of values in the set of attributevectors to produce a collection of modified pixels, which is describedbelow in greater detail in conjunction with FIG. 2A. As previously notedherein, the quantization of the set of values can represent a “lossy”step in which the overall accuracy of the image data 108 is downgraded,but this can be fine-tuned/minimized by controlling the configuration ofthe quantizer 112 such that there may not be any visual artifacts thatresult from the quantization.

Next, the encoder 118 distributes the bits (i.e., binary values) ofpairs of the modified values into two corresponding bytes, which isdescribed below in greater detail in conjunction with FIG. 2B. Finally,the corresponding bytes are placed—in a particular order—into a buffer119 as a data stream, whereupon the compressor(s) 120 compress the datastream to obtain a compressed image, which is described below in greaterdetail in conjunction with FIG. 2C.

Notably, and according to some embodiments, the compressor(s) 120 can beconfigured to implement one or more compression techniques forcompressing the buffer(s) 119. Moreover, the compressor(s) 120 can beimplemented in any manner to establish an environment that ismost-efficient for compressing the buffer(s) 119. For example, multiplebuffers 119 can be instantiated (where modified pixels can bepre-processed in parallel), and each buffer 119 can be tied to arespective compressor 120 such that the buffers 119 can besimultaneously compressed in parallel as well. Moreover, the same or adifferent type of compressor 120 can be tied to each of the buffer(s)119 based on the inherent formatting of the content that is placed intothe buffer(s) 119.

Accordingly, FIG. 1A provides a high-level overview of differenthardware/software architectures that can be implemented by computingdevice 102 in order to carry out lossy pre-processing described herein.A more detailed breakdown of these techniques will now be provided belowin conjunction with FIGS. 2A-2C and 3 .

FIG. 1B illustrates an overview 100 of a computing device 102 that canbe configured to perform the various techniques described herein. Asshown in FIG. 1B, the computing device 102 can includes similarcomponents to the computing device 102 depicted in FIG. 1A. However,according to some embodiments, the image analyzer 110 depicted in FIG.1B can be configured to implement the techniques described herein thatinvolve lossless pre-processing the image data 108 prior to compressingthe image data 108. In particular, and as shown in FIG. 1B, the imagedata 108 is received by the image analyzer 110. Upon receipt of theimage data 108, a de-interleaver 131 can be configured to de-interleaveeach set of attribute vectors into respective streams of bits for theset of values, which is described below in greater detail in conjunctionwith FIG. 4A. Next, the encoder 118 distributes each stream of bits(i.e., binary values) into two corresponding streams for LSBs and MSBs,which is described below in greater detail in conjunction with FIG. 4B.Finally, the corresponding bytes are placed—in a particular order— intoa buffer 119 as a data stream, whereupon the compressor(s) 120 compressthe data stream to obtain a compressed image, which is described belowin greater detail in conjunction with FIG. 4C.

Accordingly, FIG. 1B provides a high-level overview of differenthardware/software architectures that can be implemented by computingdevice 102 in order to carry out the lossless pre-processing describedherein. A more detailed breakdown of these techniques will be providedbelow in conjunction with FIGS. 4A-4C and 5 .

FIGS. 2A-2C illustrate a sequence of conceptual diagrams for lossypre-processing image data for lossless compression, according to someembodiments. In particular, the conceptual diagrams illustrate a seriesof steps that the image analyzer 110 can be configured to carry out whenpre-processing image data 108 for compression by the compressor(s) 120.For example, FIG. 2A illustrates a conceptual diagram 200 that isimplemented by the quantizer 112, according to some embodiments. Asshown in FIG. 2A, the image data 108 includes a set of vertices 201 thateach include a set of attribute vectors 202. Respective sets ofattribute vectors 202 include a set of values for each of positioncoordinates (x, y, z), textures (u, v), and/or normals (n_(x), n_(y),n_(z)).

A base is raised to an exponent to result in a number referred to as apower. The following relationship depicts how a power is determined:base{circumflex over ( )}exponent=power

As noted above, the conceptual diagram 200 illustrates how the quantizer112 can execute a first step, Step 1, that involves quantizing eachattribute value of the set of attribute values included in the set ofattribute vectors using a largest power as a quantization value. Thatis, the quantizer 112 may first identify a largest exponent of the setof attribute values. The quantizer 112 may then determine a largestpower using the largest exponent. For example, the quantizer 112 may usethe following relationship to determine the largest power:largest_power=2{circumflex over ( )}(largest_exponent)

The quantizer 112 may use the largest power as the quantization value toperform uniform quantization of the set of values included in each ofthe attribute vectors. The quantizer 112 may use the followingrelationship to quantize the set of attribute values into modifiedvalues:Quantize(attribute_value)=largest_power×round(attribute_value/largest_power)

As depicted by the relationship, each attribute value may be divided bythe largest power and rounded, and the rounded value may be multipliedby the largest power to obtain the modified value 210. For example, itmay be understood that the largest exponent in FIG. 2A is −6 and thelargest power in FIG. 2A is 2⁻⁶. The attribute values depicted include2⁻²⁴, 2⁻⁷, 2⁻⁶, 1-2⁻¹⁰, 1+2⁻¹⁰, 2, 4+7*2⁻⁸, and 16+2⁻⁶. The attributevalues may be quantized using the relationship described above.Quantizing 2⁻²⁴ results in 0, quantizing 2⁻⁷ results in 0, quantizing2⁻⁶ results in 2⁻⁶, quantizing (1-2⁻¹⁰) results in 1.0, quantizing(1+2⁻¹⁰) results in 1.0, quantizing 2 results in 2, quantizing (4+7*2⁻⁸)results in 4+2×2⁻⁶=4.03125, and quantizing (16+2⁻⁶) results in 16+2⁻⁶.

It is noted that the quantizer 112 can be configured in any manner toaccommodate additional types of image data 108 having differentresolutions, layouts, bit-depths, and so on, without departing from thescope of this disclosure. When the quantizer 112 completes thequantization of the set of values, the values are replaced withquantized modified values 210, as illustrated in FIG. 2A. Each modifiedvalue may be a 12-bit signed integer.

Turning now to FIG. 2B, the conceptual diagram 260 illustrates how theencoder 118 can execute a second step, Step 2, that involves performingan encoding operation against the set of pairs of modified values 210.As shown in FIG. 2B, each modified value bits QV1 and QV2 can be a12-bit signed integer 264-1 and 264-2, respectively, each including asign bit S12 and 11 bits (B11 to B1).

Next, the encoder 118 can be configured to separate each of the modifiedvalue bits QV1 and QV2 into respective two corresponding bytes: leastsignificant bytes (LSBs) 266 and most significant bytes (MSBs) 268. Theencoder 118 can perform this operation using a variety of approaches,e.g., performing an in-place modification of the modified value bits QV1and QV2 264 (and ordered according to the distribution illustrated inFIG. 2B), copying the modified value bits QV1 and QV2 264 to respectivedata structures for the MSBs 268 and the LSBs 266 (and ordered accordingto the distribution illustrated in FIG. 2B), and so on. In any case, asshown in FIG. 2B, the LSBs 266 can be configured to store (1) the leastsignificant bits (B₇ to B₁) of each of the modified value bits QV1 andQV2 264, and (2) the sign bits (S12) of the corresponding modified valuebits QV1 and QV2 264. Moreover, the MSBs 268 can be configured to storethe most significant bits (B₁₁ to B₈) of the corresponding modifiedvalue bits QV1 and QV2 264. The LSB 266 data structure may be two bytesthat holds 16 bits (B7 to B1 of QV1, B7 to B1 of QV2, and S12 for bothQV1 and QV2). The MSB 268 data structure may be one byte that holds 8bits (B11 to B8 of QV1 and B11 to B8 of QV2). The modified value bitsfor each pair of a set of pairs of modified values may be stored inrespective LSBs 266 and MSBs 268 in a similar fashion to as describedabove.

Finally, turning now to FIG. 2C, the conceptual diagram 280 illustrateshow the encoder 118 can execute a third step, Step 3, that involvesfinalizing the encoding operation illustrated in FIG. 2B. As shown inFIG. 2C, the LSBs 266/MSBs 268 for each pair of the set of pairs ofmodified values 210 can be provided to buffer(s) 119 (e.g., as a datastream) according to a particular order. In particular, the LSBs 266-1that correspond to a first pair of modified values take the firstposition in the buffer(s) 119, followed by the MSBs 268-1 thatcorrespond to the first pair of modified values, followed by the LSBs266-2 that correspond to a second pair of modified values, followed byMSBs 268-2 that correspond to the second pair of modified values. Inturn, the compressor(s) 120 can take action (e.g., when the buffer(s)119 are filled with data) and compress the contents of the buffer(s) 119to produce a compressed output (e.g., compress image 122). In someembodiments, the compressed outputs may be joined together to produce acompressed image 122.

FIG. 3 illustrates a method 300 for lossy pre-processing image data forlossless compression of the image data, according to some embodiments.As shown in FIG. 3 , the method 300 begins at step 302, where the imageanalyzer 110 receives image data that includes a model having a mesh,the mesh including a set of vertices defining a surface, the set ofvertices including a set of attribute vectors, and a set of attributevectors including a set of values. The set of attribute vectors mayinclude a set of position vectors and a set of texture vectors. Eachvalue of the set of values may be a 16-bit floating-point numberincluding a sign bit, 5-bits of exponent representing range, and 11-bitsof significand representing accuracy.

At step 304, the image analyzer 110—specifically, the quantizer112—quantizes the set of values of the set of attribute vectors toproduce a set of modified values. The quantizer 112 may quantize eachvalue of the set of values individually. Each modified value may includea 12-bit signed integer plus the largest exponent, and the set ofmodified values may be stored in an array. A precision of the set ofmodified values is determined based on a largest power determined usinga largest exponent of the set of values. Quantizing the set of values ofthe set of attribute vectors to produce the set of modified values mayinclude identifying a value of the set of values that has the largestexponent, and determining the set of modified values by applying alargest power determined using the largest exponent to each of the setof values. Determining the set of modified values by applying thelargest power to each of the set of values may further include, for eachvalue of the set of values, (i) dividing the value by the largest powerto obtain an intermediate value, (ii) rounding the intermediate value toobtain a rounded intermediate value, and (iii) multiplying the roundedintermediate value by the largest power to obtain a modified value. Inother words, the following relationship may be used to determine amodified value (quantized value):Quantized(attribute_value)=largest_power×round(attribute_value/largest_power)

The result of the relationship above may be a 12-bit signed integer asthe modified value for the attribute value. In some embodiments,quantization may be performed by, for each value of the set of valuesthat are not associated with the largest power, modifying one or moreleast significant bits of the 11-bits of significand to zero. In someembodiments, for a value of the set of values that is associated withthe largest power, the quantizer 112 may quantize the value by settingevery other bit of the 11-bits of significand to zero.

At step 306, the image analyzer 110—specifically, the encoder118—encodes pairs of the set of modified values into two correspondingunits of information (e.g., a 1 byte MSB and a 2 byte LSB). Encodingpairs of the set of modified values into two corresponding bytes mayinclude, for each modified value in the pair of the pairs of the set ofmodified values, (i) placing, into a first unit of information of thetwo corresponding units of information, least significant bits and asign bit, and (ii) placing, into a second unit of information of the twocorresponding units of information, most significant bits, where thefirst unit of information includes two bytes and the second unit ofinformation comprises one byte.

At step 308, for each pair of the pairs of the set of modified values,the image analyzer 110 serially stores the two corresponding units ofinformation as a data stream into a buffer (e.g., as described above inStep 3 of FIG. 2C). Finally, at step 310, the compressor(s) 120 compressthe data stream in the buffer, where the output of the compressed datastream is a compressed image 122 (e.g., as also described above in Step3 of FIG. 2C). The data stream may be compressed in accordance with aLempel-Ziv-Welch (“LZW”)-type or entropy-type compressor.

In some embodiments, second image data may be received (by a processor)that includes one or more relative attribute vectors associated with oneor more of the set of vertices of the mesh of the image data 108, wherethe one or more relative attribute vectors include one or more secondvalues. The data stream may be decompressed and the set of modifiedvalues may be returned to the set of values using the largest power.Differences between the one or more second values and corresponding oneor more of the set of values may be determined. The model may beanimated on a display device 130 based on the differences.

FIGS. 2A-2C and method 300 of FIG. 3 pertained to lossy pre-processingimage data for lossless compression, according to some embodiments.FIGS. 4A-4C and method 500 of FIG. 5 below pertain to losslesspre-processing image data for lossless compression, according to someembodiments. In particular, the conceptual diagrams in FIGS. 4A-4Cillustrate a series of steps that the image analyzer 110 can beconfigured to carry out when pre-processing image data 108 forcompression by the compressor(s) 120.

For example, FIG. 4A illustrates a conceptual diagram 400 that isimplemented by the image analyzer 110, according to some embodiments. Asshown in FIG. 4A, the image data 108 includes a set of vertices 201 thateach include a set of attribute vectors 202. Respective sets ofattribute vectors 202 include a set of values for each of positioncoordinates (x, y, z), textures (u, v), and/or normals (n_(x), n_(y),n_(t)).

As noted above, the conceptual diagram 400 illustrates how the imageanalyzer 110 can execute a first step, Step 1, which involves receivinga stream of image data 108 and storing it in an interleaved order inmemory. The attribute values may be received in an interleaved order foreach attribute vector in the image data 108. For example, the raw datafor (x, y, z) coordinates may be mixed in a single stream (e.g., 1dimensional buffer/array with 3x(N+1) 16-bit values and stored in memoryin the following order:x_0,y_0,z_0,x_1,y_1,z_1,x_2,y_2,z_2, . . . ,x_N,y_N,z_N

Here, x_k refers to the x-coordinate of the k:th vector, which is a16-bit number in half-precision floating point format. The k:th vectoris (x_k, y_k, z_k). The conceptual diagram 400 illustrates how thede-interleaver 131 can execute a second step, Step 2, which involvesde-interleaving each attribute value of the set of attribute valuesincluded in the set of attribute vectors. For example, for the attributevector including attributes values for x, y, and z, the de-interleaver131 may separate the values into three separate streams for the x, y,and z attribute values. For example, and as depicted, the attributevalue streams 402 may be generated: stream x (x_0, x_1, x_2, . . . ,x_N), stream y (y_0, y_1, y_2, . . . , y_N), and stream z (z_0, z_1,z_2, . . . , z_N).

Next, as depicted in conceptual diagram 410 of FIG. 4B, an encoder 118may be used to execute step three, Step 3, that involves encoding eachattribute value stream 402 into respective LSBs and MSBs streams. Thatis, a first potion of each attribute value stream 402 may be encodedinto a first byte stream including (1) a first group of LSBs, and (2) asign bit. A second portion of the respective set of bits of eachattribute value stream 402 may be encoded into a second byte streamincluding a second group of MSBs. As depicted, a set of LSBs and MSBsstreams 404 may be generated. For the stream x, there is LSBs 466-1including x_0_LSB, x_1_LSB, . . . , x_N_LSB, and MSBs 468-1 includingx_0_MSB, x_1_MSB, . . . , x_N_MSB. For the stream y, there is LSBs 466-2including y_0_LSB, y_1_LSB, . . . , y_N_LSB, and MSBs 468-2 includingy_0_MSB, y_1_MSB, . . . , y_N_MSB. For the stream z, there is LSBs 466-3including z_0_LSB, z_1_LSB, . . . , z_N_LSB, and MSBs 468-3 includingz_0 MSB, z_1 MSB, . . . , z_N_MSB.

Finally, turning now to FIG. 4C, the conceptual diagram 430 illustrateshow the encoder 118 can execute a third step, Step 3, that involvesfinalizing the encoding operation illustrated in FIG. 4B. As shown inFIG. 4C, the LSBs 466/MSBs 468 for each attribute value (e.g., x, y, z)can be provided to buffer(s) 119 (e.g., as a data stream) according to aparticular order. In particular, for each respective attribute value,the MSBs 268 may be concatenated after the LSBs 266. For example, thebuffer 119 includes the following order of LSBs and MSBs streams 404:x_LSB 466-1, x_MSB 468-1, y_LSB 466-2, y_MSB 468-2, z_LSB 466-3, andz_MSB 468-3. In turn, the compressor(s) 120 can take action (e.g., whenthe buffer(s) 119 are filled with data) and compress the contents of thebuffer(s) 119 to produce a compressed output (e.g., compress image 122).In some embodiments, the compressed outputs may be joined together toproduce a compressed image 122.

FIG. 5 illustrates a method 500 for lossless pre-processing image datafor lossless compression of the image data, according to someembodiments. As shown in FIG. 5 , the method 500 begins at step 502,where the image analyzer 110 receives image data that includes a modelhaving a mesh, the mesh including a set of vertices defining a surface,the set of vertices including a set of attribute vectors, and a set ofattribute vectors including a set of values. The set of attributevectors may include a set of position vectors and a set of texturevectors. Each value of the set of values may be a 16-bit floating-pointnumber including a sign bit, 5-bits of exponent representing range, and11-bits of significand representing accuracy. The set of attributevectors may include a position vector and a texture vector, where eachof the position vector and the texture vector include one or morehalf-precision, floating-point numbers. The attribute values may bereceived in an interleaved order as discussed above with reference toFIG. 4A.

At step 504, for each attribute vector of the set of attribute vectors,the image analyzer 110—specifically, the de-interleaver131—de-interleaves (step 506) the one or more attribute vectors into arespective set of bits. For example, for the position vector, thede-interleaver 131 may split the x, y, and z attribute values intoseparate respective streams. Likewise, for the texture vector, thede-interleaver 131 may split the u, and v attribute values into separaterespective streams.

At step 508, the image analyzer 110—specifically, the encoder118—encodes a first portion of the respective set of bits into a firstbyte stream including (i) a first group of least significant bits and(ii) a sign bit. For example, the encoder 118 may encode the leastsignificant bits of the x coordinates into LSBs 466-1, the leastsignificant bits of the y coordinates into LSBs 466-2, and the leastsignificant bits of the z coordinates into LSBs 466-3, as depicted inFIG. 4B.

At step 510, the image analyzer 110—specifically, the encoder118—encodes a second portion of the respective set of bits into a secondbyte stream including a second group of most significant bits. Forexample, the encoder 118 may encode the most significant bits of the xcoordinates into MSBs 468-1, the most significant bits of theycoordinates into MSBs 468-2, and the most significant bits of the zcoordinates into MSBs 468-3, as depicted in FIG. 4B.

At step 512, for each of the respective sets of bits, the image analyzer110 concatenates the second byte stream after the first byte stream in asingle data stream. The resulting order of the LSB and MSB streams 404stored in the buffer 119 is depicted in FIG. 4C.

At step 514, the compressor(s) 120 compress the data stream in thebuffer, where the output of the compressed data stream is a compressedimage 122 (e.g., as also described above in Step 3 of FIG. 4C). The datastream may be compressed in accordance with a Lempel-Ziv-Welch(“LZW”)-type or entropy-type compressor.

FIG. 6 illustrates a detailed view of a computing device 600 that can beused to implement the various components described herein, according tosome embodiments. In particular, the detailed view illustrates variouscomponents that can be included in the computing device 102 illustratedin FIGS. 1A and 1B. As shown in FIG. 6 , the computing device 600 caninclude a processor 602 that represents a microprocessor or controllerfor controlling the overall operation of the computing device 600. Thecomputing device 600 can also include a user input device 608 thatallows a user of the computing device 600 to interact with the computingdevice 600. For example, the user input device 608 can take a variety offorms, such as a button, keypad, dial, touch screen, audio inputinterface, visual/image capture input interface, input in the form ofsensor data, and so on. Still further, the computing device 600 caninclude a display 610 (e.g., an OLED display) that can be controlled bythe processor 602 to display information to the user. A data bus 616 canfacilitate data transfer between at least a storage device 640, theprocessor 602, and a controller 613. The controller 613 can be used tointerface with and control different equipment through and equipmentcontrol bus 614. The computing device 600 can also include a network/businterface 611 that couples to a data link 612. In the case of a wirelessconnection, the network/bus interface 611 can include a wirelesstransceiver.

As noted above, the computing device 600 also include the storage device640, which can comprise a single disk or a collection of disks (e.g.,hard drives), and includes a storage management module that manages oneor more partitions within the storage device 640. In some embodiments,storage device 640 can include flash memory, semiconductor (solid state)memory or the like. The computing device 600 can also include a RandomAccess Memory (RAM) 620 and a Read-Only Memory (ROM) 622. The ROM 622can store programs, utilities or processes to be executed in anon-volatile manner. The RAM 620 can provide volatile data storage, andstores instructions related to the operation of applications executingon the computing device 102, including the image analyzers 110 and thecompressor(s) 120.

It is additionally noted that the computing device 600 can include asecure enclave 642 that provides a highly-secure processing/storage areawithin the computing device 600 that is only accessible to authorizedentities. In particular, the secure enclave 642 can establish asandboxed environment in which unauthorized entities (e.g., user-levelapplications) are prohibited from accessing the sandboxed environment,while authorized entities (e.g., operating system (OS) daemons) arepermitted to access the sandboxed environment. Accordingly, in someembodiments, all or part of the image analyzer 110 can be implemented bythe secure enclave 642 to ensure that the data described herein aremanaged and stored securely and is not accessed by unauthorizedentities.

The various aspects, embodiments, implementations or features of thedescribed embodiments can be used separately or in any combination.Various aspects of the described embodiments can be implemented bysoftware, hardware or a combination of hardware and software. Thedescribed embodiments can also be embodied as computer readable code ona computer readable medium. The computer readable medium is any datastorage device that can store data which can thereafter be read by acomputer system. Examples of the computer readable medium includeread-only memory, random-access memory, CD-ROMs, DVDs, magnetic tape,hard disk drives, solid state drives, and optical data storage devices.The computer readable medium can also be distributed overnetwork-coupled computer systems so that the computer readable code isstored and executed in a distributed fashion.

The foregoing description, for purposes of explanation, used specificnomenclature to provide a thorough understanding of the describedembodiments. However, it will be apparent to one skilled in the art thatthe specific details are not required in order to practice the describedembodiments. Thus, the foregoing descriptions of specific embodimentsare presented for purposes of illustration and description. They are notintended to be exhaustive or to limit the described embodiments to theprecise forms disclosed. It will be apparent to one of ordinary skill inthe art that many modifications and variations are possible in view ofthe above teachings.

What is claimed is:
 1. A method for pre-processing image data forlossless compression of the image data, the method comprising, at acomputing device: receiving the image data, wherein the image datacomprises a model having a mesh, the mesh comprising a plurality ofvertices defining a surface, the plurality of vertices comprising aplurality of attribute vectors, and each attribute vector of theplurality of attribute vectors comprising one or more values; for eachattribute vector of the plurality of attribute vectors: de-interleavingone or more respective values into a respective set of bits; encoding afirst portion of the respective set of bits into a first byte streamcomprising (1) a first group of least significant bits, and (2) a signbit; encoding a second portion of the respective set of bits into asecond byte stream comprising a second group of most significant bits;and for each of the respective set of bits, concatenating the secondbyte stream after the first byte stream in a single data stream; andcompressing the single data stream.
 2. The method of claim 1, whereinthe single data stream is compressed by a Lempel-Ziv-Welch (“LZW”) typecompressor.
 3. The method of claim 1, wherein the one or more valuescomprise 16-bit floating point numbers including a sign bit, 5-bits ofexponent representing range, and 10-bits of significand representingaccuracy.
 4. The method of claim 1, wherein the plurality of attributevectors comprise a position vector and a texture vector.
 5. The methodof claim 1, wherein the single data stream is implemented using at leastone buffer.
 6. The method of claim 5, wherein compressing the singledata stream comprises obtaining the single data stream from the at leastone buffer.
 7. The method of claim 1, wherein compressing the singledata stream generates a compressed image.
 8. A non-transitory computerreadable storage medium configured to store instructions that, whenexecuted by a processor included in a computing device, cause thecomputing device to pre-process image data for lossless compression ofthe image data, by carrying out steps that include: receiving the imagedata, wherein the image data comprises a model having a mesh, the meshcomprising a plurality of vertices defining a surface, the plurality ofvertices comprising a plurality of attribute vectors, and each attributevector of the plurality of attribute vectors comprising one or morevalues; for each attribute vector of the plurality of attribute vectors:de-interleaving one or more respective values into a respective set ofbits; encoding a first portion of the respective set of bits into afirst byte stream comprising (1) a first group of least significantbits, and (2) a sign bit; encoding a second portion of the respectiveset of bits into a second byte stream comprising a second group of mostsignificant bits; and for each of the respective set of bits,concatenating the second byte stream after the first byte stream in asingle data stream; and compressing the single data stream.
 9. Thenon-transitory computer readable storage medium of claim 8, wherein thesingle data stream is compressed by a Lempel-Ziv-Welch (“LZW”) typecompressor.
 10. The non-transitory computer readable storage medium ofclaim 8, wherein the one or more values comprise 16-bit floating pointnumbers including a sign bit, 5-bits of exponent representing range, and10-bits of significand representing accuracy.
 11. The non-transitorycomputer readable storage medium of claim 8, wherein the plurality ofattribute vectors comprise a position vector and a texture vector. 12.The non-transitory computer readable storage medium of claim 8, whereinthe single data stream is implemented using at least one buffer.
 13. Thenon-transitory computer readable storage medium of claim 12, whereincompressing the single data stream comprises obtaining the single datastream from the at least one buffer.
 14. The non-transitory computerreadable storage medium of claim 8, wherein compressing the single datastream generates a compressed image.
 15. A computing device configuredto pre-processing image data for lossless compression of the image data,the computing device comprising a processor configured to cause thecomputing device to carry out steps that include: receiving the imagedata, wherein the image data comprises a model having a mesh, the meshcomprising a plurality of vertices defining a surface, the plurality ofvertices comprising a plurality of attribute vectors, and each attributevector of the plurality of attribute vectors comprising one or morevalues; for each attribute vector of the plurality of attribute vectors:de-interleaving one or more respective values into a respective set ofbits; encoding a first portion of the respective set of bits into afirst byte stream comprising (1) a first group of least significantbits, and (2) a sign bit; encoding a second portion of the respectiveset of bits into a second byte stream comprising a second group of mostsignificant bits; and for each of the respective set of bits,concatenating the second byte stream after the first byte stream in asingle data stream; and compressing the single data stream.
 16. Thecomputing device of claim 15, wherein the single data stream iscompressed by a Lempel-Ziv-Welch (“LZW”) type compressor.
 17. Thecomputing device of claim 15, wherein the one or more values comprise16-bit floating point numbers including a sign bit, 5-bits of exponentrepresenting range, and 10-bits of significand representing accuracy.18. The computing device of claim 15, wherein the plurality of attributevectors comprise a position vector and a texture vector.
 19. Thecomputing device of claim 15, wherein the single data stream isimplemented using at least one buffer.
 20. The computing device of claim19, wherein compressing the single data stream comprises obtaining thesingle data stream from the at least one buffer.